package class1;

import java.util.Arrays;
import java.util.Locale;
import java.util.Scanner;

public class StringHomework {

    public static void main(String[] args) {
        snakeToCamel();
    }

    public static void snakeToCamel() {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入");
        String snake = sc.next();

        String[] snake1 = snake.split("");
        System.out.println(Arrays.toString(snake1));

        int len = snake1.length - 1;
        String[] snake2 = new String[len];
        int index = 0;

        for (int i = 0; i < snake1.length; i++) {
            if ("_".equals(snake1[i])) {
                snake1[i + 1] = snake1[i + 1].substring(0, 1).toUpperCase();
                continue;
            } else {
                snake2[index] = snake1[i];
                index++;
            }
        }
        snake1 = snake2;
        for (int i = 0; i < snake1.length; i++) {
            System.out.print(snake1[i]);
        }
    }






}
